<div id="content-header">
    <?php
    $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
        'links' => array('Users' => 'index', 'Danh sách'),
        'htmlOptions' => array('id' => 'breadcrumb')
    ));
    ?>
</div>
<div class="row-fluid">
    <div class="span2">
        <h6><?php echo AdmincpModule::t("Danh sách thành viên"); ?></h6>

        <?php
        $this->widget('zii.widgets.CMenu', array(
            'encodeLabel' => false,
            'items' => array(
                array('label' => '<i class="icon icon-th-list"></i> <span>Danh sách Profile Field</span>', 'url' => array('profileField/admin'), 'active' => Yii::app()->controller->id === 'profileField'),
                array('label' => '<i class="icon icon-th-list"></i> <span>Thêm mới thành viên</span>', 'url' => array('/admincp/registration'), 'active' => Yii::app()->controller->id === 'order'),
            ),
            'htmlOptions' => array('class' => 'nav'),
        ));
        ?>
    </div>
    <div class="span10">
        <div class="widget-box">
            <div class="widget-content nopadding">
                <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                    <?php
                    $this->widget('bootstrap.widgets.TbGridView', array(
                        'dataProvider' => $dataProvider,
                        'columns' => array(
                            array(
                                'id' => 'autoId',
                                'class' => 'zii.widgets.grid.CCheckBoxColumn',
                                'selectableRows' => '50',
                            ),
                            array(
                                'header' => '#',
                                'class' => 'ext.CounterColumn',
                            ),
                            array(
                                'name' => 'username',
                                'type' => 'raw',
                                'value' => 'CHtml::link(CHtml::encode($data->username),array("user/view","id"=>$data->id))',
                            ),
                            'email',
                            array(
                                'name' => 'createtime',
                                'value' => 'date("d-m-Y",$data->createtime)',
                            ),
                            array(
                                'name' => 'lastvisit',
                                'value' => '(($data->lastvisit)?date("d-m-Y",$data->lastvisit):AdmincpModule::t("Not visited"))',
                            ),
                            array(
                                'name' => 'status',
                                'value' => '$data->status==1?"Kích hoạt":"Chưa kích hoạt"',
                                'filter' => array(1 => 'Kích hoạt', 0 => 'Chưa kích hoạt'),
                            )
                        ),
                    ));
                    ?>

                </div>
            </div>
        </div>
    </div>
</div>
